Carbon


CountResources

Header: Resources.h Carbon status: Supported

Returns the total number of available resources of a given type.

SInt16 CountResources (
    ResType theType
);
Parameter descriptions
theType

A resource type.

The total number of resources of the given type in all resource forks open to your application.

DISCUSSION

To check for errors, call the ResError function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)